#pragma once
#include <string>
using namespace std;

struct IPrintAction
{
	virtual void onCanNotFindPrinter();
	virtual void onCanNotBuildDC();
	virtual void setup();
	virtual void draw();
};

class __declspec(dllexport) Printer
{
public:
	
	static void doPrint(CString xm, CString sfzh, CString skse, CString dxje,
		CString dkk, CString bz, CString dhhm,
		CString username);

	static void doPrintA4(CString xm, CString sfzh, CString skse, CString dxje,
		CString dkk, CString bz, CString dhhm,
		CString username);

	static void doPrintA4(string xm, string sfzh, string skse, string dxje,
		string dkk, string bz, string dhhm,
		string username);

	static void doPrintA4_600dpi( CString xm, CString sfzh, CString skse, CString dxje,
		CString dkk, CString bz, CString dhhm, CString blr,
		CString username);
};

